<?php
class ui_index_action_edit_nickname extends ui {
	/**
	 * @param object $S
	 * @param array $param = array (
	 * 		nickname				// Magic quote
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$nickname = stripslashes(strip_tags(trim($param['nickname'])));
		
		$data_user = new data_user();
		$data = $data_user->edit_nickname($this->uid, $nickname);
		
		if ($data) {
			$S->assign('data', 'true');
		} else {
			$S->assign('data', 'false');
		}
		
	}
}
?>